import java.awt.Toolkit;

import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;

/*
 * Testing out the dial and gnomon drawing class
 */
public class MainDraw {

	public static void main(String[] args) {
		//Example drawing of the dial
		  JFrame frame = new JFrame("The Dial");
		  DrawDial applet = new DrawDial(36.81,58.18,70.29,78.31,84.52);
		  frame.getContentPane().add("Center", applet);
		  applet.init();
		  frame.setSize(Toolkit.getDefaultToolkit().getScreenSize( ));
		  frame.setLocationRelativeTo(null);
		  JMenuBar mb = new JMenuBar();
		  frame.setJMenuBar(mb);
		  JMenu file = new JMenu("File");
		  JMenuItem print = new JMenuItem("Print");
		  file.add(print);
		  mb.add(file);
		  frame.show();
		  
		  //Example drawing of the Gnomon
		  JFrame frame2 = new JFrame("The Gnomon");
		  DrawGnomon applet2 = new DrawGnomon(35);
		  frame2.getContentPane().add("Center", applet2);
		  applet2.init();
		  frame2.setSize(600, 600);
		  frame2.setLocationRelativeTo(null);
		  JMenuBar mb2 = new JMenuBar();
		  frame2.setJMenuBar(mb);
		  JMenu file2 = new JMenu("File");
		  JMenuItem print2 = new JMenuItem("Print");
		  file2.add(print);
		  mb2.add(file);
		  frame2.show();
	}

}
